#include <iostream>
using namespace std;
#define int long long
int gcd(int x, int y) {
    return y==0 ? x : gcd(y, x % y);
}
int lcm(int x, int y) {
    return x * y / gcd(x, y);
}
signed main() {
    int x, y, z;
    cin >> x >> y >> z;
    cout << lcm(z, lcm(x, y)) << endl;
    return 0;
}
